package com.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
* <p>
* 物品申请详细表
* </p>
*
* @author wsl
* @since 2022-04-11
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("gs_py_detail")
@ApiModel(value = "GsPyDetail对象", description = "物品申请详细表")
public class GsPyDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("物品申请表编号")
    private Integer goodsPyId;

    @ApiModelProperty("物品名称")
    private String gsName;

    @ApiModelProperty("物品编号")
    private Integer gsId;

    @ApiModelProperty("规格")
    private String spec;

    @ApiModelProperty("数量")
    private Integer num;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("申请主表")
    @TableField(exist = false)
    private GsPy gsPy;

    @ApiModelProperty("物品表")
    @TableField(exist = false)
    private Goods goods;

    @ApiModelProperty("物品类别表")
    @TableField(exist = false)
    private GsType gsType;
}
